class Student:
    def __init__(self, name):
        self.name = name

    def set_chinese(self, score):
        self.chinese_score = score

    def get_chinese(self):
        return self.chinese_score

    def __repr__(self):
        print(f'{self.name}的语文成绩是{self.chinese_score}')



s = Student('xiaoming')
s.set_chinese(98)
print(s.get_chinese())
print(s)